package com.social.service;

import java.util.List;

import com.base.entity.QueryParams;
import com.social.daoEx.UserTopicMapperEx;
import com.social.daoEx.model.UserTopicEx;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.social.dao.UserTopicMapper;
import com.social.dao.model.UserTopic;
import com.social.dao.model.UserTopicExample;

@Service
public class UserTopicService {
	@Autowired
	private UserTopicMapper userTopicMapper;
	@Autowired
	private UserTopicMapperEx userTopicMapperEx;

	public int countByExample(UserTopicExample example) {
		return this.userTopicMapper.countByExample(example);
	}

	public UserTopic selectByPrimaryKey(Integer id) {
		return this.userTopicMapper.selectByPrimaryKey(id);
	}

	public List<UserTopic> selectByExample(UserTopicExample example) {
		return this.userTopicMapper.selectByExample(example);
	}

	public int deleteByPrimaryKey(Integer id) {
		return this.userTopicMapper.deleteByPrimaryKey(id);
	}

	public int updateByPrimaryKeySelective(UserTopic record) {
		return this.userTopicMapper.updateByPrimaryKeySelective(record);
	}

	public int updateByPrimaryKey(UserTopic record) {
		return this.userTopicMapper.updateByPrimaryKey(record);
	}

	public int deleteByExample(UserTopicExample example) {
		return this.userTopicMapper.deleteByExample(example);
	}

	public int updateByExampleSelective(UserTopic record, UserTopicExample example) {
		return this.userTopicMapper.updateByExampleSelective(record, example);
	}

	public int updateByExample(UserTopic record, UserTopicExample example) {
		return this.userTopicMapper.updateByExample(record, example);
	}

	public int insert(UserTopic record) {
		return this.userTopicMapper.insert(record);
	}

	public int insertSelective(UserTopic record) {
		return this.userTopicMapper.insertSelective(record);
	}

	public List<UserTopicEx> selectAppList(QueryParams.Builder builder){
		return this.userTopicMapperEx.selectAppList(builder);
	}

	public List<UserTopicEx> selectList(QueryParams.Builder builder){
		return this.userTopicMapperEx.selectList(builder);
	}
}
